package com.zj.dao;

import com.zj.domain.Myuser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface MyuserDao {
    @Insert("insert into myuser(user_name ,sex,birth_date,id_no,address) " +
            "values(#{userName},#{sex},#{birthDate},#{idNo},#{address})")
    int insert(Myuser record);


    @Select("select * from myuser where id =#{id}")
    Myuser selectByPrimaryKey(Integer id);

    @Select("select * from myuser where id_no =#{idNo}")
    Myuser selectByIDno(Integer idNo);


}